// 对路由列表进行排序
export const sortChildren = (menus) => {
    menus.forEach(menu => {
        if (menu.children && menu.children.length > 0) {
            menu.children.sort((a, b) => a.orderNum - b.orderNum)
            sortChildren(menu.children)
        }
    })
}
